package com.rgs.se.design.factory.method;


import com.rgs.se.design.factory.Person;

/**
 * @author Ren Gaoshuai
 * @ClassName TestMain
 * @Description 工厂方法模式
 * 将原来一个工厂里的逻辑拆分开，才分到各个小工厂类中，每个工厂类负责一个对象的创建
 * @date 2022-02-28 16:21
 **/
public class TestMain {
    public static void main(String[] args) {
        Person student = new StudentFactory().getPerson();
        Person teacher = new TeacherFactory().getPerson();
    }
}
